<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./lib/vue.js">
    <script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>/* 远程仓库 */
    <link rel="stylesheet" href="./lib/bootstrap-4.1.3-dist/css/bootstrap.css">
</head>
<body>
    <div id="app">
   
    </div>
    <scritp>
        Vue.prototype.$htttp=axios
    var vm =new Vue({
        el:"#app",
        data:{
            list:[

            ]
        },
        created(){
            this.getList()
        }//创建阶段的钩子函数

        methods:{
         async   getList(){
             const result= await this.$http.get("http://39.106.32.91:3000/api/getprodlist")
             console.log(result)

            }

        }
    })
    
    
    
    
    
    
    
    
    </scritp>
</body>
</html>